package com.ruoyi.mng.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商户业务关系对象 hz_mer_busi_r
 * 
 * @author chenqiang
 * @date 2023-04-27
 */
public class HzMerBusiR extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商户_业务_关系ID */
    private Long rId;

    /** 商户号 */
    @Excel(name = "商户号")
    private String merchantId;

    /** 业务 */
    @Excel(name = "业务")
    private Long busiId;

    /** 计费类型：1-单笔 2-费率 3-单笔+费率 */
    @Excel(name = "计费类型：1-单笔 2-费率 3-单笔+费率")
    private Integer feeType;

    /** 费用1：单笔（分）。fee_type=1时，此列表示分；fee_type=3时，此列表示单笔费用分，费率由fee2字段控制。 */
    @Excel(name = "费用1：单笔", readConverterExp = "分=")
    private BigDecimal fee1;

    /** 费用2：费率。fee_type=1时，此列表示费率；fee_type=3时，此列表示费率。如百1，此列填写0.01;千3，此列填写0.003。 */
    @Excel(name = "费用2：费率。fee_type=1时，此列表示费率；fee_type=3时，此列表示费率。如百1，此列填写0.01;千3，此列填写0.003。")
    private BigDecimal fee2;

    /** 是否预收：1-是 2-否 */
    @Excel(name = "是否预收：1-是 2-否")
    private Long advanceCharge;

    /** 状态 1-启用 2-暂停 */
    @Excel(name = "状态 1-启用 2-暂停")
    private Integer status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /**
     * description :: 业务名称
     */
    private String extend_busi;

    /**
     * description :: 费用
     */
    private String extend_fee;
    /**
     * description :: 商户名
     */
    private String extend_merchantName;

    private String extend_fee1;

    private String extend_fee2;

    public void setrId(Long rId) 
    {
        this.rId = rId;
    }

    public Long getrId() 
    {
        return rId;
    }
    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }
    public void setBusiId(Long busiId) 
    {
        this.busiId = busiId;
    }

    public Long getBusiId() 
    {
        return busiId;
    }
    public void setFeeType(Integer feeType) 
    {
        this.feeType = feeType;
    }

    public Integer getFeeType() 
    {
        return feeType;
    }
    public void setFee1(BigDecimal fee1) 
    {
        this.fee1 = fee1;
    }

    public BigDecimal getFee1() 
    {
        return fee1;
    }
    public void setFee2(BigDecimal fee2) 
    {
        this.fee2 = fee2;
    }

    public BigDecimal getFee2() 
    {
        return fee2;
    }
    public void setAdvanceCharge(Long advanceCharge) 
    {
        this.advanceCharge = advanceCharge;
    }

    public Long getAdvanceCharge() 
    {
        return advanceCharge;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getExtend_busi() {
        return extend_busi;
    }

    public void setExtend_busi(String extend_busi) {
        this.extend_busi = extend_busi;
    }

    public String getExtend_fee() {
        return extend_fee;
    }

    public void setExtend_fee(String extend_fee) {
        this.extend_fee = extend_fee;
    }

    public String getExtend_merchantName() {
        return extend_merchantName;
    }

    public void setExtend_merchantName(String extend_merchantName) {
        this.extend_merchantName = extend_merchantName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rId", getrId())
            .append("merchantId", getMerchantId())
            .append("busiId", getBusiId())
            .append("feeType", getFeeType())
            .append("fee1", getFee1())
            .append("fee2", getFee2())
            .append("advanceCharge", getAdvanceCharge())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getExtend_fee1() {
        return extend_fee1;
    }

    public void setExtend_fee1(String extend_fee1) {
        this.extend_fee1 = extend_fee1;
    }

    public String getExtend_fee2() {
        return extend_fee2;
    }

    public void setExtend_fee2(String extend_fee2) {
        this.extend_fee2 = extend_fee2;
    }
}
